import java.util.Date

class User {
	// This is read only property
    	final String TABLE = "USER"

	int id
	String name
	Date birthDay
	String toString(){
		return "id=" + id + ",name=" + name + ",birthDay=" + birthDay
	}
}

// declare user
def user 

println(new User())

user = new User()
user.setId(1)
user.setName("kongxx")
user.setBirthDay(new Date())
println(user)

user = new User(id:2, name:"mandy", birthDay:new Date())
println(user)

user = new User(id:3, birthDay:new Date())
println(user)
